{% extends "base.html" %}
{% load url from future %}

{% block content %}

<h3>Usu&aacute;rios do Sistema</h3>

<br />

<a class="btn btn-success" href="/usuario"><i class="icon-plus icon-white"></i>  Novo Usu&aacute;rio</a>

<br /><br />

{% if usuarios %}
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
              <th>Login</th>
              <th>Nome</th>
              <th>E-mail</th>
              <th>A&ccedil;&otilde;es</th>
            </tr>
        </thead>
        <tbody>
            {% for usuario in usuarios %}
                <tr>
                    <td>{{ usuario.login }}</td>                                                
                    <td>{{ usuario.nome }}</td>
                    <td>{{ usuario.email }}</td>
                    <td><a class="btn btn-danger" href="/remover-usuario/{{ usuario.id }}"><i class="icon-trash icon-white"></i></a>
                        <a class="btn btn-success" href="/usuario/{{ usuario.id }}"><i class="icon-pencil icon-white"></i></a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endif %}

{% endblock %}